package com.bestcem.xm.txtanls.entity.mysql;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * 项目信息
 *
 * @author qiongyu.cui <qiongyu.cui@idiaoyan.com>
 * @version v1.0
 * @date 2021/9/27 14:27
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName("ds_txtanls_project")
public class ProjectEntity {

    /**
     * 项目id
     */
    @TableId("project_id")
    @TableField(jdbcType = JdbcType.BINARY)
    private String projectId;
    /**
     * 项目名称。长度最大为15
     */
    @TableField("name")
    private String name;
    /**
     * 组织id
     */
    @TableField(value = "org_id", jdbcType = JdbcType.BINARY)
    private String orgId;
    /**
     * 项目状态  0 未开始; 1 训练中; 2 已失效; 3 已删除; 4 失败; 5 已创建; 6 已完成;
     */
    @TableField(value = "status", jdbcType = JdbcType.TINYINT)
    private Integer status;
    /**
     * 问卷id
     */
    @TableField(value = "survey_id", jdbcType = JdbcType.BINARY)
    private String surveyId;
    /**
     * 表id
     */
    @TableField(value = "table_id", jdbcType = JdbcType.BINARY)
    private String tableId;
    /**
     * 表名称
     */
    @TableField(value = "table_name")
    private String tableName;
    /**
     * 训练进度, 剩余的条数
     */
    @TableField(value = "train_progress")
    private Integer trainProgress;
    /**
     * 训练状态 0 已完成; 1 未完成
     */
    @TableField(value = "train_status", jdbcType = JdbcType.TINYINT)
    private Integer trainStatus;
    /**
     * 创建用户id
     */
    @TableField(value = "creator_id", jdbcType = JdbcType.BINARY)
    private String creatorId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 新用户id
     */
    @TableField(value = "operator_id", jdbcType = JdbcType.BINARY)
    private String operatorId;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 是否是示例数据
     */
    private Boolean sample;

    /**
     * 训练模型id
     */
    private String modelId;
}
